package com.moxi.mogublog.commons.feign;

import com.moxi.cloudblog.base.validator.group.Insert;
import com.moxi.mogublog.commons.config.feign.FeignConfiguration;
import com.moxi.mogublog.commons.vo.BlogVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.BindingResult;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

/**
 * @Description: 后台接口调用
 * @return
 * @Author: huangzx
 * @Date: 2024/8/3 19:17
 */
@FeignClient(name = "cloud-admin", configuration = FeignConfiguration.class)
public interface AdminFeignClient {


    /**
     * 获取系统配置信息
     */
    @RequestMapping(value = "/systemConfig/getSystemConfig", method = RequestMethod.GET)
    public String getSystemConfig();

    @GetMapping("/webService/test")
    public String test();

    @PostMapping("/webService/addBlog")
    public String addBlog(@RequestBody BlogVO blogVO);

    @PostMapping("/webService/editBlog")
    public String editBlog(@RequestBody BlogVO blogVO);


}